package com.water_work_form.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import java.util.Date;

/**
 * jb-混凝-进厂药剂检测记录
 * @author 余繁
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="RecordDrugTest对象", description="jb-混凝-进厂药剂检测记录")
public class RecordDrugTest {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @ApiModelProperty(value = "项目类型")
    private String type;

    @ApiModelProperty(value = "记录名称编号")
    private String form;

    @ApiModelProperty(value = "项目方法限值依据")
    private String restriction;

    @ApiModelProperty(value = "计算公式")
    private String formula;


    @ApiModelProperty(value = "生产药剂")
    private String medical;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ApiModelProperty(value = "取样日期")
    private Date sampleDate;

    @ApiModelProperty(value = "取样时间")
    private String sampleTime;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    @ApiModelProperty(value = "检测时间")
    private Date checkTime;

    @ApiModelProperty(value = "比重")
    private Double proportion;

    @ApiModelProperty(value = "试样质量")
    private Double sampleMass;

    @ApiModelProperty(value = "滴定量")
    private Double titer;

    @ApiModelProperty(value = "空白滴定量")
    private Double emptyTiter;

    @ApiModelProperty(value = "含量")
    private Double content;

    @ApiModelProperty(value = "检测人id")
    private Long checkUserId;

    @ApiModelProperty(value = "检测人姓名")
    private String checkUserName;

    @ApiModelProperty(value = "报告反馈人id")
    private Long feedbackUserId;

    @ApiModelProperty(value = "报告反馈人姓名")
    private String feedbackUserName;

    @ApiModelProperty(value = "审核人id")
    private Long reviewUserId;

    @ApiModelProperty(value = "审核人姓名")
    private String reviewUserName;

    @ApiModelProperty(value = "厂家id")
    private Long manufacturerId;

    @ApiModelProperty(value = "厂家")
    private String manufacturer;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "审核员备注")
    private String reviewTip;

}
